from django.conf.urls import url 
from . import views 
from django.contrib.auth import views as auth_views


urlpatterns = [
	# url(r'^login/$',views.user_login,name="login"),  #login view of first lesson
	url(r'^login/$',auth_views.login,name='login'),	 #login view of second lesson
	url(r'^logout/$',auth_views.logout,name='logout'),
	url(r'^password_change/$','django.contrib.auth.views.password_change',{"post_change_redirect":"/account/password_change_done"},name="password_change"),
	url(r'^password_change_done/$',auth_views.password_change_done,name='password_change_done'),
	#url(r'^logout-then-login/$', auth_views.logout_then_login, name='logout-then-login'),
	url(r'^password_reset/$', auth_views.password_reset,{"post_reset_redirect":"/account/password_reset_done"},  name="password_reset"),
	url(r'^password_reset_done/$', auth_views.password_reset_done,  name='password_reset_done'),
	url(r'^password_reset_confirm/(?P<uidb64>[-\w]+)/(?P<token>[-\w]+)/$', auth_views.password_reset_confirm,{"post_reset_redirect":"/account/password_reset_complete"},  name='password_reset_confirm'),
	url(r'^password_reset_complete/$', auth_views.password_reset_complete, name='password_reset_complete'),
	url(r'^register/$', views.register, name="register"), #user register url
	url(r'^edit/$',views.edit,name='edit'),
	url(r'^upload_img/$',views.upload_img,name='upload_img'),
]